import Car from './Car';
import Man from './Man';
import { ui } from './ui/layaMaxUI';
export default class Street extends ui.streetUI {
    car: Car;
    man: Man;
    constructor() {
        super();
        // alert('哈哈哈')

        let car: Car = new Car(this)
        console.log(car);
        this.car = car
        this.man = new Man(this)
        Laya.timer.loop(20, this, this.framework)
    }
    framework() {
        this.car.framework()
        this.man.framework()
        // if (this.man.stand() && this.car.atThere()) {
        //     alert('you die')
        // }
    }


} 